package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

@Setter
@Getter
@ToString
//忽略handler
@JsonIgnoreProperties("handler")
public class Order {
    private Integer id;
    //订单编号
    @TableField("order_number")
    private String orderNum;
    //用户id
    private Integer userId;
    //用户
    @TableField(exist = false)
    private User user;
    //下单时间
    private String orderTime;
    //电话号码
    @TableField("phone")
    private String phoneNum;
    //收货地址
    private String address;
    //订单价格
    private BigDecimal price;
    //订单状态
    private String status;
    //收货人
    private String reciever;
    //订单信息，对订单的描述
    private String orderMsg;
    //订单详情
    @TableField(exist = false)
    private List<OrderItem> orderItems;
    //支付方式
    private String payWay;
    //是否评价，1代表已经评价，否则代表未评价
    private String isReview;
}
